package com.mbc.common.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.common.data.RoleDataList;
import com.mbc.common.entities.Role;
import com.mbc.common.param.CriteriaParams;

public interface RoleDAO {
	public void create(Role entity)throws SQLException;
	public void update(Role entity)throws SQLException;
	public void delete(long key)throws SQLException;
	public Role find(long key)throws SQLException;
	public RoleDataList getList(CriteriaParams cri) throws SQLException;
	public ArrayList<Role> findAll()throws SQLException;
}
